﻿<Window x:Class="Img.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Width="790" Height="817" >

    <Grid>
        <!--<Image  Source="C:\Users\Administrator\Desktop\asd\IMG_7695.jpg" Stretch="UniformToFill" />
            <Canvas>
                <Button Height="20" Width="20" >gjhghjg</Button>
            </Canvas>-->
        <Label Content="我们" Height="30" HorizontalAlignment="Left" Name="label1" VerticalAlignment="Bottom" Width="83" HorizontalContentAlignment="Left" VerticalContentAlignment="Bottom" Margin="0" Padding="0"></Label>
        <StackPanel Background="PowderBlue">

            <Glyphs
                Name="g1"
         FontUri             = "C:\WINDOWS\Fonts\TIMES.TTF"
         FontRenderingEmSize = "100"
         StyleSimulations    = "None"
         UnicodeString       = "Hello World!"
         Fill                = "Black"
          Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto"
                OriginY="70" 
                />
            <Glyphs
         FontUri             = "C:\WINDOWS\Fonts\TIMES.TTF"
         FontRenderingEmSize = "100"
         StyleSimulations    = "BoldSimulation"
         UnicodeString       = "Hello World!"
         Fill                = "Black"
         HorizontalAlignment="Left"

      />
            <Border Width="80" Height="25" HorizontalAlignment="Left" BorderThickness="2" BorderBrush="Red">

                <Image Width="80" Height="25" Name="img"  />
            </Border>
            <TextBlock Height="23" Name="textBlock1" Text="TextBlock" VerticalAlignment="Stretch" TextTrimming="None" />
            <Label Width="80" Height="25" Content="江振a的" Name="label2" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Background="White" FontFamily="方正卡通" FontSize="14" />

            <Button Content="Button" Height="23" Name="button1" Width="75" Click="button1_Click" />
            <Button Height="100" Click="Button_Click" />
            <Canvas
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Background="PowderBlue"
  >
                <!-- "Hello World!" with default kerning -->
                <Glyphs 
   FontUri             = "C:\WINDOWS\Fonts\ARIAL.TTF"
   FontRenderingEmSize = "36"
   UnicodeString       = "Hello World!"
   Fill                = "Maroon"
   OriginX             = "50"
   OriginY             = "150" SnapsToDevicePixels="False" StyleSimulations="None" UseLayoutRounding="False" />

                <!-- "Hello World!" with explicit character widths for proportional font -->
                <!-- "Hello World!" with fixed-width font -->
                <Glyphs 
     FontUri             = "C:\WINDOWS\Fonts\COUR.TTF"
     FontRenderingEmSize = "36"
     StyleSimulations    = "BoldSimulation"
     UnicodeString       = "Hello World!"
     Fill                = "Maroon"
     OriginX             = "50"
     OriginY             = "300"
/>

                <!-- "Open file" without "fi" ligature -->
                <Glyphs
   FontUri             = "C:\WINDOWS\Fonts\TIMES.TTF"
   FontRenderingEmSize = "36"
   StyleSimulations    = "BoldSimulation"
   UnicodeString       = "Open file"
   Fill                = "SlateGray"
   OriginX             = "400"
   OriginY             = "75" UseLayoutRounding="False" />

                <!-- "Open file" with "fi" ligature -->
                <Glyphs
   FontUri             = "C:\WINDOWS\Fonts\TIMES.TTF"
   FontRenderingEmSize = "36"
   StyleSimulations    = "BoldSimulation"
   UnicodeString       = "Open file"
   Indices             = ";;;;;(2:1)191"
   Fill                = "SlateGray"
   OriginX             = "400"
   OriginY             = "150"
/>

            </Canvas>
            <Glyphs FontUri="C:\WINDOWS\Fonts\方正卡通简体.TTF" FontRenderingEmSize="20"
                    UnicodeString="江振1"  Fill="Maroon" OriginX="0" OriginY="20" UseLayoutRounding="False" Height="25" FlowDirection="LeftToRight" />
            <Glyphs FontUri="C:\WINDOWS\Fonts\华康娃娃体简W5.TTC" FontRenderingEmSize="36" 
                    StyleSimulations="None" UnicodeString="Hello World!" Fill="SteelBlue" OriginX="0" OriginY="36" />
        </StackPanel>
    </Grid>

</Window>
